import request from "@/utils/request";

/**
 * 管理员管理
 */
export const getAdminList = (param) => {
    return request({
        url: '/api/admin/getAdminList',
        method: 'post',
        data: param
    })
}
export const addAdmin = (param) => {
    return request({
        url: '/api/admin/addAdmin',
        method: 'post',
        data: param
    })
}

export const getRoleDrop = (param) => {
    return request({
        url: '/api/admin/getRoleDrop',
        method: 'post',
        data: param
    })
}

export const editAdmin = (param) => {
    return request({
        url: '/api/admin/editAdmin',
        method: 'post',
        data: param
    })
}
export const delAdmin = (param) => {
    return request({
        url: '/api/admin/delAdmin',
        method: 'post',
        data: param
    })
}
export const changeAdminStatus = (param) => {
    return request({
        url: '/api/admin/changeAdminStatus',
        method: 'post',
        data: param
    })
}

/**
 * 权限组管理
 */
export const getRoleList = (param) => {
    return request({
        url: '/api/admin/getRoleList',
        method: 'post',
        data: param
    })
}
export const getMenu = (param) => {
    return request({
        url: '/api/admin/getMenu',
        method: 'post',
        data: param
    })
}
export const editRolelnfo = (param) => {
    return request({
        url: '/api/admin/editRoleInfo',
        method: 'post',
        data: param
    })
}
export const editRole = (param) => {
    return request({
        url: '/api/admin/editRole',
        method: 'post',
        data: param
    })
}
export const delRole = (param) => {
    return request({
        url: '/api/admin/delRole',
        method: 'post',
        data: param
    })
}
export const addRole = (param) => {
    return request({
        url: '/api/admin/addRole',
        method: 'post',
        data: param
    })
}


/**
 * 菜单管理
 */
